<ion-view view-title="产品信息" hide-nav-bar="true">
    <ion-header-bar align-title="center" class="bar-stable bar bar-header">
        <button class="button back-button buttons button-clear header-item" style="padding-left: 15px;" ng-click="$ionicGoBack()">
          <!--自定义返回图标-->
          <i style="display: block;width: 22px;height:22px;margin-top: 4px;background: url('img/back.png') center/22px 22px"></i>
          <span class="back-text" style="transform: translate3d(0px, 0px, 0px);"></span>
        </button>
        <h1 class="title">产品</h1>
        <div class="button" ng-click="proshare()" style="border: none;" ng-if="!ISWEB">分享</div>
    </ion-header-bar>
    <ion-content class="has-tabs w4-simu">
        <div ng-if="item.detail.sfaVideo && !share">
            <div  id="youkuplayer" style="width:100%;height:200px"></div>
            <div ng-if="item.detail.sfaVideo.isEncryption == 1">
                <div class="item video-pwd" ng-if="user.info.isLogin" >视频播放密码:<span>SFA</span></div>
                <div class="item video-pwd" ng-if="!user.info.isLogin" ng-click="gologin()"><span style="border-bottom: 1px solid #fc353a;margin-right: 5px">登录</span>查看密码</div>
            </div>
            <div ng-if="item.detail.sfaVideo.content">
                <div class="item item-icon-right video-text" ng-init="hideView = false" ng-click="hideView = !hideView">
                    视频简介
                    <i ng-if="!hideView" class="icon ion-ios-arrow-down"></i>
                    <i ng-if="hideView" class="icon ion-ios-arrow-up"></i>
                </div>
                <div class="list video-intro" ng-bind-html="item.detail.sfaVideo.content" ng-class="{hideClass:!hideView,showClass:hideView} "></div>
             </div>
        </div>

        <div class="w4-simu-1 bg-fff">
            <div class="w4-simu-name">{{item.detail.jjmc}}</div>
            <div class="w4-simu row row-no-padding w4-simu-top1">
                <div class="col text-center">
                    <div>最新净值</div>
                    <div>{{item.detail.lsjzJson[0].jzdw || '--'}}</div>
                </div>
                <div class="col text-center">
                    <div>累计净值</div>
                    <div>{{item.detail.lsjzJson[0].ljjz || '--'}}</div>
                </div>
                <div class="col text-center">
                    <div>涨跌幅</div>
                    <div>{{item.detail.lsjzJson[0].zdf || '--'}}</div>
                </div>
            </div>
            <div class="w4-simu row row-no-padding w4-simu-top1 w4-simu-top2">
                <div class="col text-center">
                    <div>基金类型</div>
                    <div>{{item.detail.jjfl}}</div>
                </div>
                <div class="col text-center">
                    <div>结构形式</div>
                    <div>{{item.detail.jgxs}}</div>
                </div>
                <div class="col text-center">
                    <div>组织形式</div>
                    <div>{{item.detail.zzxs}}</div>
                </div>
            </div>
        </div>
        <div ng-if="item.detail.activitiesMollionsWealthList.length" class="w4-activity-info">{{item.detail.activitiesMollionsWealthList[0].activitiesDesc}}
            <a ng-click="windowopen(item.detail.activitiesMollionsWealthList[0].activitiesSkipLink)">{{item.detail.activitiesMollionsWealthList[0].activitiesSkipName}}</a>
        </div>
        <div class="w4-simu-2 bg-fff">
            <div class="row">
                <div class="col">基金经理</div>
                <div class="col text-right">{{item.detail.jjjlmc}}</div>
            </div>
            <div class="row">
                <div class="col col-25">私募公司</div>
                <div class="col col-75 text-right">{{item.detail.jjgs}}</div>
            </div>
            <div class="row">
                <div class="col">认购金额</div>
                <div class="col text-right">{{item.buynotice.zdrgje}}万</div>
            </div>
            <div class="row">
                <div class="col col-25">封闭期</div>
                <div class="col col-75 text-right">{{item.detail.fbq?item.detail.fbq:'-'}}</div>
            </div>
            <div style="background-color: #f0eff5;padding: 10px 0 0 0">
                <div style="height: 44px;background-color: #f7f7f7;padding: 0 0 0 15px;line-height: 44px">认购须知:</div>
            </div>
            <div style="padding-left: 2rem"  ng-bind-html="item.buynotice.buynoticedetail"></div>


<!--             <div class="w4-xtzgDe-hasbid">
                <p>当前报价由<span><img  src="img/sfa.png" width="20px"/>金策师官方</span> 提供</p>
            </div> -->
            <p ng-click="openOrder()" class="w4-xtzgDe-more">点击查看产品详情<i class="icon ion-ios-arrow-right"></i></p>
            <div ng-if="share" style="height:40px"></div>
        </div>

    </ion-content>
    <div ng-if="share&&sharePhone" class="w4-xtzgDe-bottom bg-fff" >
        <div class="list ">
            <div class="item item-avatar row" style="background-color:#fc353a;color: #ffffff">
                <div ui-sref="shoPreview({sphone:sharePhone})" class="col col-20 col-center">
                    <img ng-if="sharePhoneInfo.uImage.indexOf('wx.qlogo')>-1" ng-src="{{shopperUserInfoDto.userHeadImg}}" alt="头像" width="50px" height="50px" style="border-radius: 100%">
                    <img ng-if="sharePhoneInfo.uImage.indexOf('wx.qlogo')<0" ng-src="{{requrl}}{{shopperUserInfoDto.userHeadImg}}" alt="头像" width="50px" height="50px" style="border-radius: 100%">
                </div>
                <div  ui-sref="shoPreview({sphone:sharePhone})" class="col col-50" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
                    <h2 ng-if="shopperUserInfoDto.userName" style="color: #ffffff">{{shopperUserInfoDto.userName}}&nbsp;<span>{{shopperUserInfoDto.companyPostion}}</span></h2>
                    <span ng-if="shopperUserInfoDto.companyName" style="font-size: 12px">{{shopperUserInfoDto.companyName}}</span>
                </div>
                <a href="tel:{{sharePhone}}" class="item-note col col-30 col-center text-center">
                    <div class="bg-fff" style="padding: 8px 5px;border-radius: 5px;color:#fa324e;font-size: 18px">
                        <img src="img/shareinfo_tel2.png" style="vertical-align: top;margin-right: 3px" width="17px" height="17px">联系他
                    </div>
                </a>
            </div>

        </div>

    </div>
    <div ng-if="!share" class="w4-xtzgDe-bottom row row-no-padding bg-fff">
        <div ng-if="platform.androidAPP||platform.IOSAPP" class="col w4-xtzgDe-icon" ng-click="modal.copy_brief()" style="padding-top: 9px">
            <img width="25px" src="img/copy.png"/>复制
        </div>
        <div class="col w4-xtzgDe-icon">
            <a ng-click="bodaPhone()" style="color: #636363">
                <img width="25px" src="img/phone.png">咨询
            </a>
        </div>
        <div class="col" ng-click="goOrder(item.detail.id)">
            <div class="w4-xtzgDe-order">立即预约</div>
        </div>
    </div>
</ion-view>